
FUNCTION LCB_Norm_aToNorm_n :DINT
TITLE = 'LCB_Norm_aToNorm_n'
//
// This function converts a scaled 16-bit signal into a scaled 32-bit signal
//
// Versionshistory:
// 1.0 Ersterstellung E.Dittmann

VERSION : '1.0'
AUTHOR  : 'Lenze'
FAMILY  : 'LCB'
NAME : 'NaToNn'
KNOW_HOW_PROTECT


VAR_INPUT
    iIn_a : INT;
END_VAR

VAR_IN_OUT
    
END_VAR

VAR_OUTPUT
    

END_VAR

BEGIN
     LCB_Norm_aToNorm_n := DWORD_TO_DINT(SHL( IN:= DINT_TO_DWORD(LIMIT(MN:=-32767, IN:=INT_TO_DINT(iIn_a), MX:=32767)),N:=16));
END_FUNCTION